import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Home from '@/components/view/Home'
import Detail from '@/components/view/Detail'
import TimeEntries from '@/components/view/TimeEntries'
import LogTime from '@/components/view/LogTime'

Vue.use(Router)

export default new Router({
    routes: [
        { path: '/home', component: Home },
        { path: '/detail', component: Detail },
        { 
            path: '/time-entries', 
            component: TimeEntries, 
            children: [
                { path: 'log-time', component: LogTime }
            ]
        }
        
    ]
})